<?php
//自定义登录页面风格（图片轮换背景）
function uazoh_custom_login_page_imgbackground() {
echo '  <script type="text/javascript" src="/wp-includes/js/jquery/jquery.js?ver=1.11.1"></script>
            <script src="'.get_template_directory_uri().'/js/jquery.backstretch.min.js"></script>
<script>
jQuery(function(){
var imgsrc = "'.get_template_directory_uri().'/img/loginbg";
var listArr = [imgsrc+"/1.jpg",imgsrc+"/2.jpg",imgsrc+"/3.jpg",imgsrc+"/4.jpg"];
jQuery(\'.login\').backstretch(listArr, {fade: 1000,duration: 5000});});</script>';
}
add_action('login_head', 'uazoh_custom_login_page_imgbackground');

//自定义登录页面风格
function uazoh_custom_login_page() {
echo'<style type="text/css">
body { background: none;padding-top: 30px;font-family: "Microsoft YaHei", sans-serif;}
.login h1 {display: none;}
#login {width: 320px;margin: auto;background: #FFF;margin-top: 8%;padding: 20px;border-radius: 3px;box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.2);}
.login form {margin-top: 20px;margin-left: 0;padding:6px 24px 10px;-webkit-box-shadow:none;box-shadow:none;}
.login form .forgetmenot{float:none}
.login .button-primary{float:none;background-color: #494949;font-weight: bold;color: #fff;width: 100%;height: 40px;border-width: 0;border-color:none}
#login form p.submit{padding: 20px 0 0;}
.wp-core-ui .button-primary.focus, .wp-core-ui .button-primary.hover, .wp-core-ui .button-primary:focus, .wp-core-ui .button-primary:hover{background:#1F1F1F}
.wp-core-ui .button.button-large{height:40px;line-height:38px;font-size:16px;box-shadow: none;text-shadow: none;}
input{outline:none!important}
</style>';
}
add_action('login_head', 'uazoh_custom_login_page');